from graphviz import Digraph
dot = Digraph(name="MyPicture1", format="png")
dot.node(name="A", label="3+2")
dot.node('B', 'a+b')
dot.edge("A", "B")
dot.render(filename="MyPicture")